/*
 * @Author: xsh201931773442
 * @Date: 2023-03-13 11:49:52
 * @LastEditTime: 2023-04-07 20:53:27
 * @FilePath: \animePC\src\API\apiList.js
 * @Description: 
 * 
 */
// // 在导入时使用 @ts-ignore
// @ts-ignore
import { getHttp, postHttp, putHttp, deleteHttp, postHttpStr } from './request' //接口方法引入
import axios from 'axios'


//使用async await来等待getHttp异步请求结果
export const wellFindById = async (reqData: any) => {
    const data = await getHttp('/origin/searchone/' + reqData)
    return data
}

export const wellPreview= async () => {
    const data = await getHttp('/origin/preview')
    return data
}

export const saveLabels= async (reqData:any) => {
    const data = await postHttp('/origin/updateLabel',reqData)
    return data
}

export const getBadWellPreview= async () => {
    const data = await getHttp('/origin/badPreview')
    return data
}
export const getGoodWellPreview= async () => {
    const data = await getHttp('/origin/goodPreview')
    return data
}

export const addWellToGood = async (reqData: any) => {
    const data = await getHttp('/origin/addToGood/' + reqData)
    return data
}
export const addWellToBad = async (reqData: any) => {
    const data = await getHttp('/origin/addToBad/' + reqData)
    return data
}

export const denoseData= async (reqData:any) => {
    const data = await postHttp('/origin/denose',reqData)
    return data
}

export const getWaterOrNormalPreview= async (reqData: any) => {
    const data = await getHttp('/origin/waterOrNormalPreview/' + reqData)
    return data
}

export const addToWaterOrNormal = async (reqData: any) => {
    const data = await getHttp('/origin/addToWaterOrNormal/' + reqData)
    return data
}

export const saveUsefulTimeInterval= async (reqData:any) => {
    const data = await postHttp('/origin/usefulLabel',reqData)
    return data
}